<?

require_once "../web4/dbconfigpublic.php";



?>
<style type="text/css">
<!--
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
</style>
<table width="100%">
<?
$result = mysql_query("SELECT * FROM discussroom where published = 1 and theme=1 order by id ",$db);

$count=0;
while ($myrow = mysql_fetch_array($result))
{
	if ( $count % 7 == 0 )
		echo "<tr>\n";

	if ( $myrow['online'] == 1 ) 
		$showlive="&nbsp;<font size=\"-2\" color=\"#FF0000\">live</font>";
	else
		$showlive="";
	echo "<td><a href='showroom.php?roomid=".$myrow['id']."' target='front'>".$myrow['roomname']."</a>$showlive</td>\n";
	if ( $count % 7 == 6 )
		echo "</tr>\n";
	$count++;

}



?>
</table>
